function T = static_resid_tt(T, y, x, params)
% function T = static_resid_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 21);

TEF_0 = int_capital(y(39),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(13),params(14));
T(1) = TEF_0;
TEF_1 = int_profit(y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4));
T(2) = TEF_1;
TEF_2 = int_money(y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4));
T(3) = TEF_2;
TEF_3 = int_liq(y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27));
T(4) = TEF_3;
T(5) = y(16)*params(1)/y(32)*(1-params(4));
T(6) = params(52)+y(35)*y(9)*params(10)*(1-params(9))+y(36)*params(12)*params(9)*y(9)*params(10)*(1-params(8))+y(37)*params(14)*params(9)*y(9)*params(10);
T(7) = params(1)/y(32)/(1+y(22));
T(8) = y(16)/y(46)/(1-params(3));
TEF_4 = int_surplus(y(28)/y(27),1,y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(12),params(4));
T(9) = TEF_4;
T(10) = (log(y(40))-params(20))/params(21)/1.414213562373095;
TEF_5 = average_log_normal(y(40),params(20),params(21));
T(11) = TEF_5;
TEF_6 = int_partial(y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),y(28)/y(27));
T(12) = TEF_6;
TEF_7 = int_acquisition(y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4));
T(13) = TEF_7;
T(14) = (params(3)/y(32))^(1/(1-params(3)));
T(15) = y(46)*T(14);
T(16) = y(46)^(1-params(3));
T(17) = y(25)*T(16);
T(18) = y(27)^(1-params(3));
T(19) = y(29)^params(3);
TEF_8 = int_2nd_price(y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4));
T(20) = TEF_8;
TEF_9 = int_prod_disp(y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10));
T(21) = TEF_9;

end
